/* 
 * File:   smp_essentials.h
 * Author: privalov
 *
 * Created on 23 Апрель 2014 г., 15:23
 */

#ifndef SMP_ESSENTIALS_H
#define	SMP_ESSENTIALS_H

#ifdef	__cplusplus
extern "C" {
#endif
    enum _MUTEX_ID{
        GLOBALM,
        INITM,
        ALLOCM,
        GETM,
        RELM,
        FREEM,
        LAST
    };
    typedef enum _MUTEX_ID mutex_id;
    int lock(mutex_id mutex);
    int unlock(mutex_id mutex);
    

#ifdef	__cplusplus
}
#endif

#endif	/* SMP_ESSENTIALS_H */

